{layout name="layout/layout" /}
<style>
    .layui-table-cell {
        font-size: 13px;
        white-space: normal;
    }
    .layui-table-grid-down{
        display:none;
    }
</style>
<div class="layuimini-container">
    <div class="layuimini-main">
        <table id="currentTable" class="layui-table layui-hide"
               data-auth-add="{:auths('admin/activity/add')}"
               data-auth-edit="{:auths('admin/activity/edit')}"
               lay-filter="currentTable">
        </table>
    </div>
</div>

<script type="text/html" id="buttonTpl">
    <span style="color: #576B95; font-size: 13px; cursor: pointer;" src="/admin/admin/activity/wxappQrcode?page=pages/activity/index&scene=activityId={{d.id}}" data-image>预览</span> |
    <span style="color: #576B95; font-size: 13px; cursor: pointer;" data-open="admin/activity/edit?id={{d.id}}" data-full="true" data-title="{{d.activity_title}} - 编辑">编辑</span> |
    <span style="color: #576B95; font-size: 13px; cursor: pointer;" class="easyadmin-export-btn" data-url="admin/activity/export?id={{d.id}}" data-table-export="">导出</span>
    <br />
    <a target="_blank" style="color: #576B95; font-size: 13px; cursor: pointer;" href="/api/dashboard/index?code={{d.code}}">操作大屏</a> |
    <span style="color: #576B95; font-size: 13px; cursor: pointer;" data-open="admin/activityPrize/index?activity_id={{d.id}}" data-full="true" data-title="{{d.activity_title}} - 翻牌奖品设置">翻牌奖品设置</span> |
    <span style="color: #576B95; font-size: 13px; cursor: pointer;" class="{{ d.user_id != null && d.user_id != 0 ? 'layui-hide' : '' }}" src="/admin/admin/activity/wxappQrcode?page=pages/staff/api/binding&scene=activityId={{d.id}}" data-image>绑定商家</span>
    <span style="color: #f56c6c; font-size: 13px; cursor: pointer;" class="{{ d.user_id != null && d.user_id != 0 ? '' : 'layui-hide' }}" data-network="{{d.id}}" data-url="admin/activity/removeBinding">解除绑定</span>
    <br />
    <span style="color: #576B95; font-size: 13px; cursor: pointer;" data-open="admin/activityVisitor/index?activity_id={{d.id}}" data-full="true" data-title="{{d.activity_title}} - 参与明细">参与明细</span> |
    <span style="color: #576B95; font-size: 13px; cursor: pointer;" data-open="admin/order/index?activity_id={{d.id}}" data-full="true" data-title="{{d.activity_title}} - 收款明细">收款明细</span> |
    <span style="color: #576B95; font-size: 13px; cursor: pointer;" data-open="admin/paymentDisburse/index?activity_id={{d.id}}" data-full="true" data-title="{{d.activity_title}} - 支出明细">支出明细</span> |
    <span style="color: #576B95; font-size: 13px; cursor: pointer;" data-open="admin/paymentPlatformBox/index?activity_id={{d.id}}" data-full="true" data-title="{{d.activity_title}} - 平台盲盒">平台盲盒</span> |
    <span style="color: #576B95; font-size: 13px; cursor: pointer;" data-open="admin/paymentActivityPrize/index?activity_id={{d.id}}" data-full="true" data-title="{{d.activity_title}} - 翻牌抽奖">翻牌抽奖</span>
</script>